//
//  UIView+LCExtension.h
//  LCPackage
//
//  Created by 马军凯 on 2021/6/22.
//  Copyright © 2021 龙采科技集团. All rights reserved.
//

#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN

@interface UIView (LCExtension)
//上
@property (nonatomic, assign) CGFloat top;
//左
@property (nonatomic, assign) CGFloat left;
//下
@property (nonatomic, assign) CGFloat bottom;
//右
@property (nonatomic, assign) CGFloat right;
//宽
@property (nonatomic, assign) CGFloat width;
//高
@property (nonatomic, assign) CGFloat height;
//size
@property (nonatomic, assign) CGSize size;
//origin
@property (nonatomic, assign) CGPoint origin;
//centerX
@property (nonatomic, assign) CGFloat centerX;
//centerY
@property (nonatomic, assign) CGFloat centerY;

//圆角
- (void)LC_cornerRadius:(CGFloat)Radius;
//线边
- (void)LC_cornerLineWidth:(CGFloat)Width LineColor:(UIColor *)color;

- (void)LC_cornerRadius:(CGFloat)radius byRoundingCorners:(UIRectCorner)corners;

- (void)addRoundedCorners:(UIRectCorner)corners withRadius:(CGSize)radius;

- (void)addRoundedCorners:(UIRectCorner)corners withRadius:(CGSize)radius viewRect:(CGRect)rect;

//添加阴影
- (void)addShadowWithColor:(UIColor *)shadowColor;
//渐变
- (void)addGradientWithStartPoint:(CGPoint)startPoint endPoint:(CGPoint)endPoint startColor:(UIColor *)startColor endColor:(UIColor *)endColor;

//xib的view
+ (NSArray *)addNibViewWith:(NSString *)nibName;

@end

NS_ASSUME_NONNULL_END
